<html>
<!--
/*
 * Copyright (C) 2011 The Code Bakers
 * Authors: Cleuton Sampaio e Francisco Rodrigues
 * e-mail: thecodebakers@gmail.com
 * Project: http://code.google.com/p/pgandroidstring
 * Site: http://www.thecodebakers.org
 *
 * Licensed under the GNU GPL, Version 3.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://gplv3.fsf.org/
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * 
 * @author Cleuton Sampaio e Francisco Rogrigues - thecodebakers@gmail.com
 */
 -->
<head>
<title>Gerador de desculpas furadas</title>
<script type="text/javascript" charset="utf-8" src="phonegap.0.9.6.js" />
<script type="text/javascript" charset="utf-8" src="pgandroidstring.js" />
<script type="text/javascript" charset="utf-8">
function pegar() {
 	window.plugins.pgandroidstring.getstring(
 			{nome: 'teste'},
			function(r){
				document.getElementById('output').innerHTML = r.value;
			},
			function(e) {
				alert(e.value);
				document.getElementById('output').innerHTML = e.value; 
			});
}
</script>
</head>
<body>
<body>
<h3>Teste do plugin</h3>

<div id="output">
</div>
<br/>
<input type="button" value="Pegar string"
       onclick="pegar();" />
</body>
</html>